﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>sample</title>
    <style type="text/css">
        th,td 
        {
            vertical-align: top;
            text-align: left;
        }
        
        #payment {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <table>
        <tr>
            <th>
                Enter Loan Data:
            </th>
        </tr>
        <tr>
            <td>
                Amount of the loan ($):
            </td>
            <td>
                <input type="text" id="amount" />
            </td>
        </tr>
        <tr>
            <td>
                Annual interest (%):
            </td>
            <td>
                <input type="text" id="apr" />
            </td>
        </tr>
        <tr>
            <td>
                Repayment period (years):
            </td>
            <td>
                <input type="text" id="years" />
            </td>
        </tr>
        <tr>
            <td>
                Zipcode (to find lenders):
            </td>
            <td>
                <input type="text" id="zipcode" />
            </td>
        </tr>
        <tr>
            <th>
                Approximate Payments:
            </th>
            <td>
                <button>
                    Calculate</button>
            </td>
        </tr>
        <tr>
            <td>Monthly payment:</td>
            <td>$<span id="payment"></span></td>
        </tr>
        <tr>
            <td>Total payment:</td>
            <td>$<span id="total"></span></td>
        </tr>
        <tr>
            <td>Total interest:</td>
            <td>$<span id="totalinterest"></span></td>
        </tr>
        <tr>
            <th>Sponsors:</th>
            <td colspan="2">Apply for your loan with one of these fine lenders:<div id="lenders"></div></td>
        </tr>
    </table>
</body>
</html>
